<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.wzx.bean.User" %>
<%@ page import="com.wzx.bean.Birthday" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--        1域对象存放对象--%>
    <%
        User user1 = new User("jack",22,"男",new Birthday(2000,1,1));
        request.setAttribute("user1",user1);
    %>
    <%--    2使用表达式取值--%>
    ${user1.name}
    ${user1.age}
    ${user1.gender}
    ${user1.birthday.year}
    ${user1.birthday.month}
    ${user1.birthday.day}
</body>
</html>
